/*
 * @Author: Sunye
 * @Date: 2025-04-03 16:12:05
 * @LastEditors: sunye
 * @LastEditTime: 2025-04-13 22:25:43
 * @Description:
 */
import { defineStore } from 'pinia'
import menuRoutes from '@/router/routes'
import { UserState } from '@/store/types/user-types'

export const useUserStore = defineStore('user', {
  state: (): UserState => {
    return {
      token: '',
      username: '',
      password: '',
      menuRoutes: menuRoutes,
    }
  },

  actions: {
    getUserInfo() {
      this.username = 'Mona'
    }
  }
})
